<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>提供公益帮助</title>
	<link rel="stylesheet" type="text/css" href="<?=base_url()?>public/css/style.css">
    <link rel="stylesheet" type="text/css" href="<?=base_url()?>public/uploadify/uploadify.css">

    <script type="text/javascript" src="<?=base_url()?>public/js/jq.1.12.4.js"></script>
    <script type="text/javascript" src="<?=base_url()?>public/uploadify/jquery.uploadify.js"></script>
    <script type="text/javascript" src="<?=base_url()?>public/js/js.js"></script>

<style>
#goodcover {
    display: none;
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 133%;
    background-color: black;
    z-index: 1001;
    -moz-opacity: 0.8;
    opacity: 0.50;
    filter: alpha(opacity=80);
}
#code {
    width: 300px;
    height: 240px;
	border-radius:10px;
    background-color: #fff;
    padding: 10px;
    position: absolute;
    display: none;
    left: 45%;
    z-index: 1002;
}
.close1 {
    width: 300px;
    height: 35px;
}
#closebt {
    float: right;
}
#closebt img {
    width: 12px;
	border-radius:6px;
	border:1px solid #efefef;
}
.goodtxt {
    text-align: center;
}
.goodtxt p {
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    color: #000;
    font-weight: 600;
}
s{text-decoration:none;}
.tishi1,.tishi2,.tishi3{
    position: absolute;
    width: 290px;
    left: 50%;
    margin-left: -105px;
    top: 30%;
    background-color: #f5f5f5;
    color: #525252;
    box-shadow: -5px 5px 10px 1px rgba( 11, 2, 5, 0.3 );
   // display: none;
}
.tishi1 h6,.tishi2 h6,.tishi3 h6 {
    color: #1d3e00;
    text-align: center;
    line-height: 50px;
	font-size:17px;
}
.tishi1 .btn1,.tishi2 .btn2,.tishi3 .btn3 {
    text-align: center;
}
.tishi p{
	height:40px;
}
.tishi p span{
	width:40%;
	float:left;
	height:40px;
	line-height:40px;
}
.tishi p b{
	width:60%;
	float:right;
	text-align:left;
	height:40px;
	line-height:40px;
}
.goodtxt p>span{
    height: 100%;
    line-height: 30px;
}
.goodtxt p>b{
    height: 100%;
    line-height: 30px;
}
.tishi .btn{
    margin-bottom: 40px;
    margin-top: 20px;
}
.tishi .btn>input{
    margin-top: 0px;
    cursor: pointer;
	text-align:center;
}
s{text-decoration:none;}
#file_upload-button{
	//box-shadow:6px 6px 8px black;
	background:url("../../public/img/commitImg1.jpg");
	width:172px !important;
	height:40px !important;
	line-height:40px !important;
}
#file_upload-queue{
	width:250px;
	height:10px;
	background-color:#e6e6e6;
	border-radius:10px;
	position:realtive;
}
#file_upload_queue>i{
	position:absolute;
	top:0px;
	left:0px;
	width:100%;
	height:100%;
	border-radius:5px;
	background-color:#005886;
}

#file_upload{
	width:172px !important;
	height:40px !important;
}
.chakan{
	cursor:pointer;
}
.chakan>span{
	letter-spacing:5px;
}
.photo{
	cursor:pointer;
}
</style>
</head>
<body>
	<!-- 头部 -->
    <?php echo $menu ?>
    <!-- 主体 -->
    <div class="main clearfix">
        <?php echo $left ?>

		<div class="content">
			<div class="con">
				<div class="bikuang">
                	<div class="right_title">
                        <span>公益收益中心&nbsp;&nbsp; -</span>
                        <span style="color:#1d3e00; margin:0;">&nbsp;&nbsp;提供公益帮助</span>
                    </div>
                    <div style="border-bottom:1px solid #c0cbb0; padding-bottom:20px; width:100%; margin:0 auto;box-shadow: -3px 3px 6px 0px rgba( 29, 62, 0, 0.2 );">
                        <?php echo form_open('offer_help/info_post',array('id'=>'myform')) ?>
                        <div class="person">
                        	<p><span>公益币余额</span><input readonly type="text" value="<?php echo $user['public_money'] ?>" style='width:40%;'></p>
                            <p class="biaozhu">您当前公益级别：<?php echo $score_level['title']; ?>       日回报<b><?php echo $score_level['lv_day_rate']; ?>%</b><br>
    						   打款后会获得首日<b><?php echo $score_level['first_day_rate']; ?>%</b>，每日依次递增<b>0.5%</b>的日回报
                            </p>
                            <p><span>申请合作金额</span>
                            <select type="text" id="money" name="money" value="" maxlength='5' style='width:40%;height:35px;border:1px solid #ccc;'>
								<option value="2000">2000</option>
								<option value="4000">4000</option>
								<option value="6000">6000</option>
								<option value="8000">8000</option>
								<option value="10000">10000</option>
							</select>
                            </p>
							<a id='zcxy' style='margin-left:37%;color:#1d3e00;cursor:pointer;width:15%;margin-top:25px;'>平台服务条款</a>
							<div class="asa" style='left:32%;top:24%;z-index:500; box-shadow:1px 3px 5px 1px rgba(11, 2, 5, 0.3); position:absolute;width:440px;height:440px;padding:25px 52px;background:#edf8c5;color:#3e4d0a;line-height:40px;text-align:center;display:none;box-sizing:border-box;'>
							<span style='font-size:18px;font-weight:bolod;'>平台服务条款</span>
							<br />
							<p style='word-break:break-all;' >&nbsp;&nbsp;&nbsp;得道天合公益扶农平台是以公益为目的的开放平台本平台，是为了让参与者通过资金流动让所需资助者获取帮助，让赞助者获取利益，真正达到资金传递，互利互惠。
							平台只收取公益币费用作为参与使用，每枚十元。注册本平台会员即有权利参与。<br/>&nbsp;&nbsp;&nbsp;注：投资有风险，请用非关键资金参与。我已完全了解所有条款与风险。并自愿参与，遵守平台条款和制度。</p>
							<input type='checkbox' id="jkcheck" checked='checked' style='margin-top:-30px;' />我同意
							<div style='width:20%;margin:0 auto;height:30px;line-height:30px;border-radius:10%;background:#254e01; margin-bottom:20px; color:white;position:relative;' class='js-btn'>点击关闭</div>
							</div>
							<script>
								$(function(){
									var a = true;
									$('.js-btn').on('click',function(){
										$('.asa').css('display','none');
									})
									$('#zcxy').on('click',function(){
											$('.asa').css('display','block');

									})


								})
							</script>
                            <p  class="btn"><span id="btn_add" style='width:20%;margin-left:33%;position:relative;'>确认申请</span></p>
							<script>
								$('#btn_add').on('mousedown',function(){
									$('#btn_add').css('top','5px');
									console.log(1)
								})
								$('#btn_add').on('mouseup',function(){
									$('#btn_add').css('top','0px');
									console.log(2)
								})
							</script>
                        </div>
                        </form>


                    </div>
                    <div class="right_title">
                        <span>公益收益中心&nbsp;&nbsp; -</span>
                        <span style="color:#1d3e00; margin:0;">&nbsp;&nbsp;公益等待期/公益合作期</span>
                    </div>
                    <div class="person1">
                    	<table cellpadding="0" cellspacing="0">
                        	<tr>
                            	<th>公益编号</th>
                                <th>申请日期</th>
                                <th>匹配时间</th>
                                <th>金额</th>
                                <th>天数</th>
                                <th>回报</th>
                                <th  style='width:115px;'>积分倒计时</th>
                                <th  style='width:115px;'>剩余打款时间</th>
                                <th>收益人信息</th>
                                <th style='width:width:178px;;'>合作天数</th>
                                <th>操作</th>
                                <th>上传打款图片</th>
                            </tr>
                            <?php $ci_obj = & get_instance();  ?>
                            <?php foreach($order_list as $key => $log): ?>
                            <tr>
                                
                                <?php  
								$out_rate = 0;
                                if($log['out_day_num']!=0){
                                    $user_lv = $ci_obj->common->get_user_level_info($log['user_lv']);
                                    $out_rate = array_sum(range($user_lv['first_day_rate'],($user_lv['first_day_rate'] + ($log['out_day_num'] - 1)*0.5),0.5));

                                }
                                 ?>
                                
                            	<td><?php echo $log['bianhao']?></td>
                                <td class="number"><?php echo  date('Y-m-d H:i:s',$log['sq_time'])?></td>
                                <td class="number"><?php echo  date('Y-m-d H:i:s',$log['hz_time'])?></td>
                                <td><?php echo $log['money']?></td>
                                <td><?php echo $log['day_num']+ ($log['out_day_num'] ? $log['out_day_num'] : 0)?></td>
                                <td><?php echo ($log['day_num']*$log['money'])/100 + ($out_rate ? ($out_rate *$log['money'])/100 :0)?></td>
                                <td class="green" style='width:178px;'>
                                <?php if($log['shoukuan'] == 0 ):?>
                                    <?php  $five_hours = 18000 - (time() - $log['hz_time']); ?>
                                    <?php if($five_hours > 0): ?>
                                    <span class="settime" endTime="<?php echo $five_hours ?>">

                                    </span>
                                    <?php else: ?>
                                    过期
                                    <?php endif; ?>
                                <?php endif;  ?>
                                </td>
                                <td style='width:150px;'>
                                    <?php if($log['shoukuan'] == 0 ):?>
                                    <?php $sy_time = 86400  - (time() - $log['hz_time']);?>
                                        <?php  if($sy_time > 0): ?>
                                        <span class="settime" endTime="<?php echo $sy_time ?>"></span>
                                        <?php else: ?>
                                        过期
                                        <?php endif; ?>
                                    <?php elseif($log['dakuan'] == 1):  ?>
                                       交易完成
                                    <?php else:  ?>
                                        已拒绝
                                    <?php endif; ?>
                                </td>
                                <td class="chakan" style='color:blue;'>
								
								<span class="btn_chakan">查看</span>
									
                                    <div class="tishi">
                                        <p><span>公益账号：</span><b><?php echo substr_replace($log['user_account'],'***',3,3) ?></b></p>
                                        <p><span>姓名：</span><b><?php echo $log['user_name'] ?></b></p>
                                        <p><span>电话：</span><b><?php echo $log['mobile'] ?></b></p>
                                        <p><span>支付宝号：</span><b><?php echo $log['zfb_account'] ?></b></p>
                                        <p><span>微信号：</span><b><?php echo $log['wx_id'] ?></b></p>
                                        <p><span>开户行：</span><b><?php echo $log['bank_name'] ?></b></p>
                                        <p><span>银行账号：</span><b><?php echo $log['bank_card'] ?></b></p>
                                        <p><span>匹配金额：</span><b><?php echo $log['money'] ?></b></p>
                                        <p><span>匹配时间：</span><b><?php echo date("Y-m-d H:i:s",$log['hz_time']) ?></b></p>
                                        <p><span >推广人姓名：</span><b><?php echo $log['up_user_name']; ?></b></p>
                                        <p><span>电话：</span><b><?php echo $log['up_mobile'] ?></b></p>
                                        <p class="btn"><input class= type="button" value="关闭" name="关闭"></p>
                                    </div>
                                </td>

                                <td class="green xuanze" style='width:150px;'>
                                    <?php if($log['out_day_num'] == 0): ?>
                                    请选择
                                	<ul class="menu" olid = "<?php echo $log['id'] ?>" style='top:100%;left:30%'>
                                    	<li>1天</li>
                                        <li>2天</li>
                                        <li>3天</li>
                                        <li>4天</li>
                                        <li>5天</li>
                                    </ul>
                                    <?php else: ?>
                                        <?php if($log['shoukuan'] == 0): ?>
                                        <?php echo $log['out_day_num'].'天'  ?>
                                        <?php else: ?>
                                            <?php $sy_out_time = ($log['out_day_num']* 86400) - (time()-$log['shoukuan_time']);?>
                                            <?php if($sy_out_time > 0): ?>
                                            <span class="settime" endTime="<?php echo $sy_out_time ?>"></span>
                                            <?php else: ?>
                                            已出场
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                </td>
                                <td class="number" style='line-height:20px;'>
                                    <?php if($log['dakuan'] == 0): ?>

                                    <b class="<?php if($log['out_day_num'] != 0): ?>dakuan<?php else:?>dakuan1<?php endif; ?>" >
                                        <a style='color:blue;' <?php if($log['out_day_num'] != 0): ?> href="<?php echo site_url('offer_help/change_dakuan_type/1/'.$log['id'].'/'. urlencode($log['up_account']) ) ?>"<?php else:?> href="javascript:void(0);" onClick="dotishi();" <?php endif; ?>>确认打款</a>
                                    </b>

                                    <br>
                                    <b style='color:red;' class='buda'><b href="<?php echo site_url('offer_help/change_dakuan_type/2/'.$log['id']) ?>">拒绝打款</b></b>
                                    <?php else:?>
                                    <?php echo $dakuan_type[$log['dakuan']] ?>
                                    <?php endif; ?>
                                </td>
                                <?php if(empty($log['img_url'])): ?>
                                <td class="photo" order_id="<?php echo $log['id'] ?>">
                                        文件上传
                                </td>
                                <?php else: ?>
                                    <td>
                                    <a style='color:blue;' href="<?php echo base_url().'uploads/'.$log['img_url'] ?>" target="_blank">查看</a>
                                    </td>
                                <?php endif; ?>
                            </tr>
                            <?php endforeach; ?>
                        </table>
                    </div>
				</div>
			</div>
		</div>
	</div>

<div id="goodcover"></div>
<div id="code">
  <div class="close1">

    <b class='tishi-js' style='color:red;margin-left:112px;mragin-top:50px;display:block;width:88px;font-size:16px;'></b>
	<a href="javascript:void(0)" id="closebt"><img src="<?=base_url()?>public/img/close.gif"></a>
  </div>
  <div class="goodtxt">
    <center>
        <?php echo form_open('offer_help/update_img',array('id'=>'imgform')); ?>
        <input id="file_upload" name="userfile" type="file" multiple>
        <input type="hidden" id="order_id" name="order_id">
        <p style='margin-top:40px;'>
        图片地址：<input type="text" id="img_url" name="img_url">
        </p>
        <p>
			<button id="btn_img" type="button" style='width:170px;height:40px;margin-top:5px;background:url(<?=base_url()?>public/img/commitImg2.jpg) no-repeat center center / 100% 100%;color:black;font-size:14px;position:relative;color:#000;font-weight:bold;'>确认上传</button>
        </p>
        </form>
    </center>

  </div>
</div>
<div id="msg_box" class="tishi1">
	<h6>是否确认收款</h6>
	<p class="btn1">
		<input id="btn_sk_on" type="button" value="是" name="是">
		<input id="btn_sk_off" type="button" value="否" name="否">
	</p>
</div>

<div id="msg_box1" class="tishi2" style="display:none">
	<h6>请先选择出场天数</h6>
	<p class="btn2">
		<input id="" type="button" onClick="doclose();" value="是" name="是">
	</p>
</div>
<div id="msg_box3" class="tishi3" style='display:none;'>
	<h6>是否确认天数</h6>
	<p class="btn3">
		<input id="btn_tim_on" type="button" value="是" name="是">
		<input onClick='doclo()' type="button" value="否" name="否">
	</p>
</div>


<script type="text/javascript">
function doclo(){
	$("#msg_box3").css('display','none');
}
function dotishi() {
	$("#msg_box1").css('display','none');
	$("#msg_box1").css('display','block');
}
function doclose() {
	$("#msg_box1").css('display','none');
}

$(function(){
	$('#btn-img').on('mousedown',function(){
		$('#btn-img')
	})
	$('.js-tishi').on('click',function(){
		$('.js-tishi').css('display','none');
	})
    //var order_id = 0;

    $('.photo').click(function() {
        $('#order_id').val($(this).attr('order_id'));
        $('#code').center();
        $('#goodcover').show();
        $('#code').fadeIn();
    });
    $('#closebt').click(function() {
		$(".close1 .tishi-js").hide();
        $('#code').hide();
		$('#goodcover').hide();
    });
    $('#goodcover').click(function() {
        $('#code').hide();
        $('#goodcover').hide();
    });
    /*var val=$(window).height();
    var codeheight=$("#code").height();
    var topheight=(val-codeheight)/2;
    $('#code').css('top',topheight);*/
    jQuery.fn.center = function(loaded) {
        var obj = this;
        body_width = parseInt($(window).width());
        body_height = parseInt($(window).height());
        block_width = parseInt(obj.width());
        block_height = parseInt(obj.height());

        left_position = parseInt((body_width / 2) - (block_width / 2) + $(window).scrollLeft());
        if (body_width < block_width) {
            left_position = 0 + $(window).scrollLeft();
        };

        top_position = parseInt((body_height / 2) - (block_height / 2) + $(window).scrollTop());
        if (body_height < block_height) {
            top_position = 0 + $(window).scrollTop();
        };

        if (!loaded) {

            obj.css({
                'position': 'absolute'
            });
            obj.css({
                'top': ($(window).height() - $('#code').height()) * 0.5,
                'left': left_position
            });
            $(window).bind('resize', function() {
                obj.center(!loaded);
            });
            $(window).bind('scroll', function() {
                obj.center(!loaded);
            });

        } else {
            obj.stop();
            obj.css({
                'position': 'absolute'
            });
            obj.animate({
                'top': top_position
            }, 200, 'linear');
        }
    }


    //点击
    // $('.photo').on('click', function(event) {

    //     order_id = $(this).attr();

    //     $('.modal').modal('show');
    // });
    $('#btn_img').on('click',  function() {

        if($('#order_id').val() == ''){
			$('.tishi-js').text('参数错误');
          //  alert('参数错误');
            return false;
        }else{
			$('.tishi-js').text('');
		}
        if($('#img_url').val() == ''){
			$('.tishi-js').text('请上传图片');
           // alert('请上传图片');
            return false;
        }else{
			$('.tishi-js').text('');
		}

        $('#imgform').submit();

    });

    $('#file_upload').uploadify({
        //'debug'    :'true',
        //'method'   : 'get',
        'swf'      : '<?=base_url()?>public/uploadify/uploadify.swf',
        'uploader' : '<?php echo site_url('offer_help/img_upload') ?>',
        'fileObjName'   :   'userfile',
        'buttonText' : '上传图片',
        'uploadLimit' : 1,
        'onUploadSuccess' : function(file, data, response) {
            //console.log(data);
            if(data == 0){
				$('.js-tishi').css('display','block');
				$('.js-tishi').text('上传失败');
               // alert('上传失败');
                location.reload();
            }else{
                $('#img_url').val(data);
            }
            // html += '<p><a href="upload/'+data+'">'+data+'</a></p>';
            // arr.push(data);
            // $('#file_list').html(html);
            // $('#filejson').val(arr.join());
        },
        'onQueueComplete':function(queueData){
            //console.log(queueData);
            $('.btn_submit').removeAttr('disabled');
        }
    });

    $('#btn_add').on('click', function(event) {
        if($('#money').val() == ''){
			$('.js-tishi').css('display','block');
	   $('.js-tishi').text('请输入金额');
           // alert('请输入金额');
            return false;
        }
		if (!$('#jkcheck').is(':checked')) {
			alert('请同意平台协议');
            return false;
		}
        $('#myform').submit();
    });

   // $('.menu li').on('click',  function(event) {
   //     var day_num = $(this).html().substring(0,1);
 //       var url = '<?php echo site_url("offer_help/ajax_update_day_num") ?>';
   //     var id = $($(this).parent()).attr('olid');
   //     $.post(url, {day_num: day_num,id:id}, function(d) {
            //console.log(d);
    //        if(d>0){
			//	$('.js-tishi').css('display','block');
			//	$('.js-tishi').text('选择成功');
               // alert('选择成功');
	//			location.href='<?php site_url("offer_help") ?>';
    //        }else{
	//			$('.js-tishi').css('display','block');
	//   $('.js-tishi').text('失败');
               // alert('失败');
    //        }
     //   });
        /* Act on the event */
   // });
})

var flage = true
$(".person1 table tr .xuanze").click(
	function(){
		if(flage == true){
		$(this).children(".menu").css({display:"block"})
		flage = false
		}else{
			$(this).children(".menu").css({display:"none"})
			flage = true
			}
		})
 var sile = true
 $(".person1 table tr .chakan").click(
 	function(){
 		if(sile == true){
			//alert('1');
 		$(this).siblings(".tishi").css({display:"block"})
		//$(this).next().css({display:"block"})
			var account=$(".tishi>p:first-child>b").html();
 			$(this).siblings(".tishi>p:first-child>b").html(account.slice(0,2)+"***"+account.slice(5));
 		sile = false
 		}else{
			//alert('2');
 			$(this).siblings(".tishi").css({display:"none"})
			//$(this).next().css({display:"none"})
 			sile = true
 			}
 });
var sile = true
$(".person1 table tr td .dakuan").click(
	function(){
		if(sile == true){
		$(".tishi1").css({display:"block"})
		sile = false
		}else{
			$(".tishi1").css({display:"none"})
			sile = true
			}
})

$(".tishi .btn input").click(
	function(){
		$(".tishi").css({display:"none"})
		})

function showBox(){
	var url;
	var date;
	var me;
	$(".person1>table tr").each(function(){
		$(this).find(".dakuan>a").click(function(event){
			event.preventDefault();
			var ul=$(this).parent().parent().siblings(".menu").length;
			if(ul>0){
				$("#msg_box3").show();
			}else{
				$("#msg_box>h6").text('是否确认打款');
				url=$(this).attr("href");
				$("#msg_box").show();
			}
		});
		$(this).find(".buda>b").click(function(event){
			$("#msg_box>h6").text('是否拒绝打款');
			url=$(this).attr("href");
			$("#msg_box").show();
		});

	});
	$("#msg_box #btn_sk_off").click(function(){
		$("#msg_box").hide();
	});
	$("#msg_box #btn_sk_on").click(function(){
		window.location.href=url;
	});


	$(".person1>table tr").each(function(){
		$(this).find(".menu>li").click(function(event){
			event.preventDefault();
			date=$(this).html();
			me=this;
			$("#msg_box3 h6").text('是否确认选择'+$(this).text());
			$("#msg_box3").show();
		});

	});
	$("#msg_box3 #btn_sk_off").click(function(){
		$("#msg_box3").hide();
	});
	$("#msg_box3 #btn_tim_on").click(function(){

       var day_num = date.substring(0,1);
        var url = '<?php echo site_url("offer_help/ajax_update_day_num") ?>';
        var id = $($(me).parent()).attr('olid');
		//console.log(id+"---"+day_num);
        $.post(url, {day_num: day_num,id:id}, function(d) {
            //console.log(d);
            if(d>0){
				//$('.js-tishi').css('display','block');
				//$('.js-tishi').text('选择成功');
               // alert('选择成功');
				location.href='<?php site_url("offer_help") ?>';
           }else{
				//$('.js-tishi').css('display','block');
	   //$('.js-tishi').text('失败');
               // alert('失败');
           }
        });
        /* Act on the event */
		$("#msg_box").show();
	});

};
showBox();
</script>


</body>
</html>
<script type="text/javascript">
    $(function(){

        updateEndTime();
        //$('.btn_chakan').on('click', function(event) {
        $('.btn_chakan').on('click', function(event) { 
			$('.tishi').hide();
		    $($(this).next()).show();
			//$('.tishi123').css('display','none');
			//alert('1');
			//$(this).next().show();
			//$(this).childeren[0].show();
        });
    });
	
	//function chakan($id){
	//	alert($id);
	//}
	
    //遍历倒计时
    function updateEndTime(){
        $(".settime").each(function(i){
            var lag = this.getAttribute("endTime");//(endTime - time) / 1000; //当前时间和结束时间之间的秒数
            $(this).attr("endTime",lag-1);
            if(lag > 0)
            {
                var time_str = '';
                if(lag > 86400){
                    time_str += Math.floor((lag / 3600) / 24)+'天';
                     console.log(time_str);
                }
                if(lag >3600){
                    time_str += Math.floor((lag / 3600) % 24)+"小时";
                     console.log(time_str);
                }
                if(lag > 60)
                {
                    time_str += Math.floor((lag / 60) % 60)+"分";
                     console.log(time_str);
                }
                if(lag > 0)
                {
                    time_str += (Math.floor(lag % 60) >= 10 ? Math.floor(lag % 60) : "0" + Math.floor(lag % 60))+"秒";
                     console.log(time_str);
                }

                $(this).html(time_str);
            }
            else{
                $(this).removeClass("settime");
                $(this).html("已过期");
            }
        });
        setTimeout("updateEndTime()",1000);
    }
</script>
